﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Portals.MVC4Portal.Models.ViewModels.LayoutViewModels.SecurityViewModels.LogOn_ViewModel
@{
    Layout = Model._CurrentSiteLayout;   
}
<div id="divLogOnDialog">
    @using (Html.BeginForm(actionName: null, controllerName: null, method: FormMethod.Post, htmlAttributes: new { @ReturnUrl = Model.ReturnUrl, @class = "logonForm", @action = this.Context.Request.Url.PathAndQuery }))
    {
        @Html.ValidationSummary(true, Resources.View_LogOn_AuthenticationFailed_Message)
        @Html.HiddenFor(m => m.ReturnUrl);
        <fieldset>
            <legend>@Resources.View_Account_LogOn_FormTitle</legend>
            <ol>
                <li>
                    @Html.LabelFor(m => m.Credentials.UserName)
                    @Html.TextBoxFor(m => m.Credentials.UserName)
                </li>
                <li>
                    @Html.LabelFor(m => m.Credentials.Password)
                    @Html.PasswordFor(m => m.Credentials.Password)
                </li>
                <li>
                    @Html.CheckBoxFor(m => m.Credentials.RememberMe)
                    @Html.LabelFor(m => m.Credentials.RememberMe, new { @class = "checkbox" })
                </li>
                <li>
                    <input type="submit" value="@Resources.View_LogOn_Submit" class="submitButton centred" />
                </li>
                <li class="links">
                    <a href="/@Model._Languages.SelectedLanguage.Language/forgotpassword" title="@Resources.View_LogOn_PasswordForgotten" class="forgottenPassword">@Resources.View_LogOn_PasswordForgotten</a>
                </li>
                <li class="links">
                    <a href="/@Model._Languages.SelectedLanguage.Language/Register" alt="@Resources.View_Account_LogOn_RegisterIfNoAccount_2">@Resources.View_Account_LogOn_RegisterIfNoAccount_1</a>
                </li>
            </ol>
        </fieldset>
    }
</div>
